package com.xbongbong.util;

import com.alibaba.fastjson.JSONObject;

/**
 * 处理header相关
 *
 * @ClassName HeaderUtil
 * @Author 梁鲁江
 * 创建时间 2022/6/13 20:29
 * 修改时间  2022/6/13 20:29
 **/
public class HeaderUtil {
    public static String getTokenId(){
        //TODO 后面改为数据库或者配置文件获取
//        String token = "73f33fb5e8cdd88823d07884e16b78f0";
        String token = "e6b678730315dc30d84c8cdea3ae0548";
        return token;
    }
    public static JSONObject getHeader() {
        JSONObject header = new JSONObject();
        header.put("token",getTokenId());
        header.put("Content-Type","application/x-www-form-urlencoded;charset=UTF-8");
        return header;
    }
    
    public static String getHosts(){
        //TODO 后面改为数据库或者配置文件获取
//        String host = "http://192.168.20.79:12345";
        String host = "http://192.168.10.42:12345";
        return host;
    }
}
